<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="para" />
<xsl:template match="/dmodule">
		<html>
			<head>
			<meta charset="utf-8" />
			<meta name="viewport" content="width=device-width, initial-scale=1" />
			<title>IETM浏览器</title>
			<link rel="stylesheet" href="/css/important_css.css"  type="text/css"/>
			<link type="text/css" href="/css/dm/s1000D.css" rel="stylesheet"/>
			<script type="text/javascript" src="/js/jquery.js"></script>
			<script type="text/javascript" src="/js/jquery-ui.js"></script>
			<script type="text/javascript" src="/js/UnityObject2.js"></script>
			<script type="text/javascript" src="/js/procedure_api.js"></script>
			<script type="text/javascript" src="/js/media.js"></script>
			<script type="text/javascript" src="/js/dialog-help.js"></script>
			<script type="text/javascript" src="/ietm/js/public.js"/>
			<script type="text/javascript" src="/js/jquery.form.js"></script>
			<script type="text/javascript" src="/js/zebra_dialog.src.js"></script>
			<script type="text/javascript" src="/js/Tdrag.js"></script>
			<script type="text/javascript" src="/js/menu.js" charset="UTF-8"></script>
			<script type="text/javascript" src="/js/note.js"></script>
			<script type="text/javascript" src="/js/pprompt.js"></script>
			<script type="text/javascript" src="/ietm/js/dm-plugin.js"></script>
			<style type="text/css">
	    	body,html{background:#fff;width:100%;height:100%;overflow:auto}
			</style>
			</head>
			<body>
			<div class="home-d">
			<div class="home-d-t active">
				<div class="home-d-t-pub">
				  <div class="home-d-t-title"><span>数据模块信息</span></div>
				</div>
				<div class="home-d-t-content">
					<table width="50%" align="left" cellpadding="4" cellspacing="0">
					<tr>
						<td width="100%" colspan="2" style="font-weight:bold;">标识信息</td>
					</tr>
					<!--xml解析内容-->
					<tr>
						<td>数据模块编码:</td>
						<td>
						<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
								<xsl:apply-templates select="dmCode" mode="dmCode"/>
						</xsl:for-each>
						</td>
					</tr>
					<tr>
						<td>版本信息:</td>
						<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
								<xsl:apply-templates select="issueInfo" mode="issueInfo"/>
						</xsl:for-each>
					</tr>
					<tr>
						<td>发布日期:[yyyy-mm-dd]</td>
						<xsl:for-each select="identAndStatusSection/dmAddress/dmAddressItems">
								<xsl:apply-templates select="issueDate" mode="issueDate"/>
						</xsl:for-each>
					</tr>
					<tr>
					   <td>语言:[国家/语言]</td>
					  <xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
								<xsl:apply-templates select="language" mode="language"/>
						</xsl:for-each>
					</tr>
					<tr>
						<td></td>
						<td></td>
					</tr>
				</table>
				<table width="50%" align="right" cellpadding="0" cellspacing="0">
					<tr>
						<td width="100%" colspan="2" style="font-weight:bold;">状态信息</td>
					</tr>
					<!--xml解析内容-->
					<tr>
						<td>密级:</td>
						<xsl:for-each select="identAndStatusSection/dmStatus">
							<xsl:apply-templates select="security" mode="security"/>
						</xsl:for-each>
					</tr>
					<tr>
						<td>责任合作单位:</td>
						<xsl:for-each select="identAndStatusSection/dmStatus">
							<xsl:apply-templates select="responsiblePartnerCompany" mode="responsiblePartnerCompany"/>
						</xsl:for-each>
					</tr>
					<tr>
						<td>创作单位:</td>
						<xsl:for-each select="identAndStatusSection/dmStatus">
							<xsl:apply-templates select="originator" mode="originator"/>
						</xsl:for-each>
					</tr>
					<tr>
						<td>适用性信息:</td>
						<td><xsl:value-of select="identAndStatusSection/dmStatus/applic/displayText/simplePara"/></td>
						</tr>
					
					<tr>
						<td>质量验证:</td>
						<td>理论验证(TT)</td>
					</tr>
				</table>
				</div>
			</div>
			<!-- <div class="home-d-m">
				<div class="home-d-m-hide"></div>
				<div class="home-d-m-show"></div>
			</div> -->
			<div class="home-d-b">
				<!--左右的样式-->
				<div class="home-d-b-tow">
					<div>
						<div class="home-d-t-pub">
							<div class="home-d-t-title">
							<!--解析内容标题-->
								<span class="dmtitle">
									<xsl:for-each select="identAndStatusSection/dmAddress/dmAddressItems">
										<xsl:apply-templates select="dmTitle" mode="dmTitle"/>
									</xsl:for-each>
								</span>
							</div>
							<div class="home-d-t-syx">
								<span>适用性：
								<xsl:value-of select="identAndStatusSection/dmStatus/applic/displayText/simplePara"/>
							</span>
							<span>密级：
							<xsl:for-each select="identAndStatusSection/dmStatus">
							<xsl:apply-templates select="security" mode="security1"/>
							</xsl:for-each>
							</span>
							<span class="home-d-m-show">更多>></span>
							<span class="home-d-m-hide">隐藏>></span>
							</div>
						</div>
						<div class="home-d-b-content" id="article">
						<!--解析主题内容-->
						<xsl:apply-templates select="content"/>
						<div class="content-btn" >
								<a href="javascript:void(0);" id="btn_db"><img src="/images/btn_db.png" /></a>
								<a href="javascript:void(0);" id="btn_syb"><img src="/images/btn_syb.png" /></a>
								<a href="javascript:void(0);" id="btn_xyb"><img src="/images/btn_xyb.png" /></a>
						</div>
						</div>
					</div>
					<div class="home-d-b-towr" style="display:none">
						<div class="home-d-t-pub">
						  <div class="home-d-t-title"><span>多媒体显示区</span></div>
						  <div class="home-d-t-syx"><div class="cgmu3dclose"></div></div>
						  <div class="home-d-t-syx" style="margin-right:30px;"><div class="fullscreen"></div></div>
						</div>
						<div class="home-d-b-content" id="ietm-media">
						
						</div>
					</div>
				</div>
			</div>
		</div>	
			</body>
		</html>
	</xsl:template>
	
<!--主体结束，模板开始-->

<!--图表解析-->
<xsl:template match="*" mode="figure">
	<div class="figIndent">
	<a><xsl:if test="@id">
					<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
		</xsl:if></a>
		<xsl:for-each select="graphic/hotspot">
			<a><xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute></a>
			<xsl:text>
			</xsl:text><!--提取元素时要求换行-->
		</xsl:for-each>
		<a>
		<xsl:if test="graphic/hotspot/@id">
			<xsl:attribute name="name"><xsl:value-of select="substring(graphic/hotspot/@id,1,8)"/></xsl:attribute>
		</xsl:if>
		<!-- <xsl:value-of select="graphic/@infoEntityIdent"/> -->
		</a>
	</div>
	<div class="thumbnail">
		<a>
		  
			<xsl:element name="image">
				<xsl:attribute name="alt">Thumbnail</xsl:attribute>
				<xsl:attribute name="id">%PICID%</xsl:attribute>
				<xsl:attribute name="class">thumbnail</xsl:attribute>
				<xsl:attribute name="height">100</xsl:attribute>
				<xsl:attribute name="src">%PATH%/<xsl:value-of select="graphic/@infoEntityIdent"/>.%ext%</xsl:attribute>
			</xsl:element>
		<!--	<xsl:if test="graphic/hotspot">
				<div style="display:none;">
					<table cellspacing="0" class="bordered cgm_hotspot_list">
						<thead>
							<tr>
								<th class="bordered">
									<p class="legend">部件号</p>
								</th>
								<th class="bordered">
									<p class="legend">描述</p>
								</th>
							</tr>
						</thead>
						<tbody>
							<xsl:for-each select="graphic/hotspot">
								<tr>
									<td class="bordered">
										<p class="legend cgm_hotspot_element">
											<xsl:value-of select="./@applicationStructureName"/>
										</p>
									</td>
									<td class="bordered">
										<p class="legend">
											<xsl:value-of select="./@objectDescr"/>
										</p>
									</td>
								</tr>
							</xsl:for-each>
						</tbody>
					</table>
				</div>
			</xsl:if>
		--></a>
		<div class="textcenter"><xsl:if test="@id"><xsl:attribute name="idno"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>多媒体 %PICNO% <xsl:value-of select="title"/></div>
	</div>
	<div style="clear:both"/>
	<xsl:for-each select="legend/definitionList">
		<p class="indent"><xsl:apply-templates select="." mode="list"/></p>
	</xsl:for-each>
</xsl:template>

<!--multimedia解析-->
<xsl:template match="*" mode="multimedia">
	<div class="figIndent">
		<a>
		<xsl:attribute name="href">%PATH%/<xsl:value-of select="multimediaObject/@id"/>.html</xsl:attribute>
		<xsl:if test="@id">
			<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
		</xsl:if>
		<xsl:value-of select="multimediaObject/@id"/>
		</a>
	</div>
	<div class="thumbnail">
		<a>
			<xsl:element name="image">
				<xsl:attribute name="alt">Thumbnail</xsl:attribute>
				<xsl:attribute name="id">%PICID%</xsl:attribute>
				<xsl:attribute name="class">thumbnail</xsl:attribute>
				<xsl:attribute name="height">100</xsl:attribute>
				<xsl:attribute name="src">%PATH%/<xsl:value-of select="multimediaObject/@id"/>.%ext%</xsl:attribute>
			</xsl:element>
			<xsl:if test="//multimedia">
				<div style="display:none;">
					<table cellspacing="0" class="bordered cgm_hotspot_list">
						<thead>
							<tr>
								<th class="bordered">
									<p class="legend">序号</p>
								</th>
								<th class="bordered">
									<p class="legend">步骤</p>
								</th>
							</tr>
						</thead>
						<tbody>
							<xsl:for-each select="//mainProcedure/proceduralStep">
							<xsl:if test="@id">
								<tr>
								<td class="bordered">
									<p class="legend">
										<xsl:value-of select="position()"/>
									</p>
								</td>
								<td class="bordered">
									<p class="legend">
									<a>
									<xsl:attribute name="href">#<xsl:value-of select="@id"/></xsl:attribute>
									<xsl:apply-templates select="." mode="para"/>
									</a>
									</p>
								</td>
								</tr>
							</xsl:if>
							</xsl:for-each>
						</tbody>
					</table>
				</div>
			</xsl:if>
		</a>
		<div class="textcenter"><xsl:if test="@id"><xsl:attribute name="idno"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>多媒体 %PICNO% <xsl:value-of select="title"/></div>
	</div>
	<div style="clear:both"/>
	<xsl:for-each select="legend/definitionList">
		<p class="indent"><xsl:apply-templates select="." mode="list"/></p>
	</xsl:for-each>
</xsl:template>

<!--解析标题-->
<xsl:template match="*" mode="dmTitle">
		<xsl:value-of select="techName"/> - <xsl:value-of select="infoName"/>
</xsl:template>

<!--解析资料编号_dm-->
<xsl:template match="*" mode="dmCode">
	<xsl:value-of select="@modelIdentCode"/>-<xsl:value-of select="@systemDiffCode"/>-<xsl:value-of select="@systemCode"/>-<xsl:value-of select="@subSystemCode"/>
	<xsl:value-of select="@subSubSystemCode"/>-<xsl:value-of select="@assyCode"/>-<xsl:value-of select="@disassyCode"/>
	<xsl:value-of select="@disassyCodeVariant"/>-<xsl:value-of select="@infoCode"/>
	<xsl:value-of select="@infoCodeVariant"/>-<xsl:value-of select="@itemLocationCode"/>
</xsl:template>
<!--版本信息-->
<xsl:template match="*" mode="issueInfo">
	<td>
	[版本号:<xsl:value-of select="@issueNumber"/>]
	<span  style="display:none"><xsl:value-of select="@inWork"/></span>
	</td>
</xsl:template>
<!--发布日期-->
<xsl:template match="*" mode="issueDate">
<td>
	<xsl:value-of select="@year"/>-<xsl:value-of select="@month"/>-<xsl:value-of select="@day"/>
</td>
</xsl:template>
<!--语言-->
<xsl:template match="*" mode="language">
<td>
	<xsl:value-of select="@countryIsoCode"/>/<xsl:value-of select="@languageIsoCode"/>
</td>
</xsl:template>
<!--秘级-->
<xsl:template match="*" mode="security">
<td>
<xsl:choose>
        <xsl:when test="./@securityClassification='01'">
			[级别:01 公开]
		</xsl:when>
        <xsl:when test="./@securityClassification='02'">
			[级别:02 内部]
		</xsl:when>
		<xsl:when test="./@securityClassification='03'">
			[级别:03 秘密]
		</xsl:when>
		<xsl:when test="./@securityClassification='04'">
			[级别:04 机密]
		</xsl:when>
		<xsl:when test="./@securityClassification='05'">
			[级别:05 绝密]
		</xsl:when>
        <xsl:otherwise>
        </xsl:otherwise>
    </xsl:choose>
</td>
</xsl:template>	

<!--密级划分-->
<!--秘级-->
<xsl:template match="*" mode="security1">
<xsl:choose>
        <xsl:when test="./@securityClassification='01'">
			公开
		</xsl:when>
        <xsl:when test="./@securityClassification='02'">
			内部
		</xsl:when>
		<xsl:when test="./@securityClassification='03'">
			秘密
		</xsl:when>
		<xsl:when test="./@securityClassification='04'">
			机密
		</xsl:when>
		<xsl:when test="./@securityClassification='05'">
			绝密
		</xsl:when>
        <xsl:otherwise>
        </xsl:otherwise>
    </xsl:choose>
</xsl:template>
<!--responsiblePartnerCompany-->
<xsl:template match="*" mode="responsiblePartnerCompany">
<td>
	[<xsl:value-of select="@enterpriseCode"/>]
</td>
</xsl:template>
<!--originator-->
<xsl:template match="*" mode="originator">
<td>
	[<xsl:value-of select="@enterpriseCode"/>]
</td>
</xsl:template>
<!--解析资料编号_pm-->
<xsl:template match="*" mode="pmCode">
	<xsl:value-of select="@modelIdentCode"/>-<xsl:value-of select="@pmIssuer"/>-<xsl:value-of select="@pmNumber"/>-<xsl:value-of select="@pmVolume"/>
</xsl:template>

<!--解析主体内容-->
<xsl:template match="content">
	<div id="content">	
		<xsl:for-each select="refs">
			<xsl:apply-templates select="." mode="refs"/>
		</xsl:for-each>
		
		<xsl:for-each select="warningsAndCautions">
			<xsl:apply-templates select="*" mode="para_warning_caution_note"/>
		</xsl:for-each>

		
		<!--procedure节点-->
		<xsl:if test="procedure">
		 <div>
		<xsl:for-each select="procedure">
			<!--公共信息-->
			<xsl:for-each select="commonInfo">
				<xsl:for-each select="commonInfoDescrPara/title">
					<p class="titleItalic">{{<xsl:value-of select="."/>}}</p>
				</xsl:for-each>
				<xsl:for-each select="commonInfoDescrPara/para">
					<p class="indent"><xsl:apply-templates select="." mode="para"/></p>
				</xsl:for-each>
				<xsl:for-each select="title">
					<p class="titleItalic">{{<xsl:value-of select="."/>}}</p>
				</xsl:for-each>
				<xsl:for-each select="para">
					<p class="indent"><xsl:apply-templates select="." mode="para"/></p>
				</xsl:for-each>
			</xsl:for-each>
			<!--必要准备工作_开始-->
			<xsl:for-each select="preliminaryRqmts">
				<xsl:apply-templates select="." mode="preliminaryRqmts"/>
			</xsl:for-each>
			<!--必要准备工作_结束-->
			
			<!--mainProcedure循环节点-->
			<xsl:if test="mainProcedure">
				<p class="titleItalic">{{程序}}</p><a name="proced"></a>
				<xsl:apply-templates select="mainProcedure"/>
			</xsl:if>
				
			<!--工作结束后条件_开始-->
			<xsl:for-each select="closeRqmts">
				<a name="closereqs"><p class="titleItalic" name="closereqs">{{工作结束后条件}}</p></a>
				<xsl:for-each select="reqCondGroup">
					<xsl:apply-templates select="." mode="reqCondGroup"/>
				</xsl:for-each>
			</xsl:for-each>
			<!--工作结束后条件_结束-->
				
		</xsl:for-each>
		 </div>
		</xsl:if>
	</div>
</xsl:template>

<!--mainProcedure节点解析-->
<xsl:template match="mainProcedure">
	<xsl:for-each select="*">
	
	<xsl:if test="name(.) = 'figure'">
		<xsl:apply-templates select="." mode="figure"/>
	</xsl:if>
	<xsl:if test="name(.) = 'table'">
		<xsl:apply-templates select="." mode="table"/>
	</xsl:if>
	<!--multimedia节点-->
	<xsl:if test="name(.) = 'multimedia'">
		<xsl:apply-templates select="." mode="multimedia"/>
	</xsl:if>
	<xsl:if test="name(.) = 'proceduralStep'">
	    <a name="procedural_step_start"></a>
		<xsl:apply-templates select="." mode="proceduralStep">
			<xsl:with-param name="num">
				<xsl:number level="multiple" count="proceduralStep"/>
			</xsl:with-param>
		</xsl:apply-templates>
		<a name="procedural_step_end"></a>
	</xsl:if>
	</xsl:for-each>
	
</xsl:template>


<!--proceduralStep节点解析-->
<xsl:template match="*" mode="proceduralStep">
	<xsl:param name="num"/>
	<xsl:if test="@id">
		<a><xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute></a>
	</xsl:if>
	<!--title节点处理-->
	<xsl:choose>
		<xsl:when test="title">
			<p class="subtitle"><xsl:value-of select="$num"/><span class="blank"></span>
			<xsl:apply-templates select="title" mode="para"/></p>
		</xsl:when>
		<xsl:otherwise>
			<!--<span class="subtitle"><xsl:value-of select="$num"/><span class="blank"></span></span>-->
		</xsl:otherwise>
	</xsl:choose>
	
	<xsl:for-each select="*">
	
		<xsl:if test="name(.) = 'warning' or name(.) = 'caution' or name(.) = 'note'">
			<xsl:apply-templates select="." mode="para_warning_caution_note"/>
		</xsl:if>
		
		<xsl:if test="name(.) = 'para'">
		
		<xsl:variable name="para_number"><xsl:number level="single" count="para"/></xsl:variable>
		
			<xsl:choose>
			<xsl:when test="../title">
				<p class="indent"><xsl:apply-templates select="." mode="para"/></p>
			</xsl:when>
			<xsl:otherwise>
				<xsl:choose>
					<xsl:when test="$para_number = 1">
						<p class="para"><span class="para"><xsl:value-of select="$num"/>
						<span class="blank"></span></span><xsl:apply-templates select="." mode="para"/>
						</p>
					</xsl:when>
					<xsl:otherwise>
						<p class="indent"><xsl:apply-templates select="." mode="para"/></p>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>

		</xsl:if>
		<!--table节点-->
		<xsl:if test="name(.) = 'table'">
			<xsl:apply-templates select="." mode="table"/>
		</xsl:if>
		<!--figure节点-->
		<xsl:if test="name(.) = 'figure'">
			<xsl:apply-templates select="." mode="figure"/>
		</xsl:if>
		<!--proceduralStep递归调用-->
		<xsl:if test="name(.) = 'proceduralStep'">
				<xsl:apply-templates select="." mode="proceduralStep">
					<xsl:with-param name="num">
						<xsl:number level="multiple" count="proceduralStep"/>
					</xsl:with-param>
				</xsl:apply-templates>
		</xsl:if>
	</xsl:for-each>

</xsl:template>

<xsl:template name="handlepagefragment5" >
       <xsl:param name="appId5"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//table//tgroup//colspec">
                      <xsl:if test="@colname=$appId5">
					<!--	<xsl:value-of select="number(@colnum)"/> -->
						<xsl:number value="@colnum"></xsl:number>
					  </xsl:if>
					 
                    </xsl:for-each>
       </xsl:template>

	<xsl:template name="handlepagefragment6" >
       <xsl:param name="appId6"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//table//tgroup//colspec">
                      <xsl:if test="@colname=$appId6">
						<xsl:value-of select="number(@colnum)"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>





<xsl:template match="*" mode="table">
	<table class="bordered" cellspacing="0" width="800px">
		<caption class="tableTitle">表 %TABLENO% <xsl:value-of select="title"/>
			<xsl:if test="@id">
				<a>
					<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
				</a>
			</xsl:if>
		</caption>
		<colgroup>
			<col/>
			<col/>
			<col/>
		</colgroup>
		<xsl:if test="tgroup/thead/row">
				<thead>
			    <xsl:for-each select="tgroup/thead/row">
					     <tr>
							<xsl:for-each select="entry">
							    <xsl:if test="emphasis">
							       <th class="bordered">
							           <p class="table">
											<xsl:apply-templates select="." mode="emphasis"/>
									   </p>
							       </th>
									
							    </xsl:if>
								<xsl:choose>
									<xsl:when test="./@morerows">
										<xsl:element name="th">
											<xsl:attribute name="class">bordered</xsl:attribute>
											<xsl:attribute name="rowspan"><xsl:value-of select="./@morerows + 1"/></xsl:attribute>
											<xsl:attribute name="colspan">
												<xsl:value-of select="./@nameend - ./@namest + 1"/>
											</xsl:attribute>
											<!--<xsl:for-each select="para">-->
											<p class="table">
											   <b>
											       <xsl:apply-templates select="." mode="para"/>
											   </b>
												
											</p>
											<!--</xsl:for-each>-->
										</xsl:element>
									</xsl:when>
									
									<xsl:when test="./@namest">
																						
												<xsl:element name="th">
													<xsl:attribute name="class">bordered</xsl:attribute>
													<xsl:attribute name="colspan">
													   	<xsl:value-of select="./@nameend - ./@namest + 1"/>
													 </xsl:attribute>
													
													<p class="table">
													    <b>
															   <xsl:apply-templates select="." mode="para"/>
														</b>
												
													</p>
												</xsl:element>
									</xsl:when>
									<xsl:otherwise>
										<!--<xsl:choose>
												<xsl:when test="para!=''">
												    <td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="para"/>
														</p>
													</td>
												</xsl:when>
												<xsl:when test="internalRef">
												    <td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="internalRef"/>
														</p>
													</td>
												</xsl:when>
											</xsl:choose>-->
												<xsl:if test="para!=''">
													<td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="para"/>
														</p>
													</td>
												</xsl:if>
												<xsl:for-each select="internalRef">
													<td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="internalRef11"/>
														</p>
													</td>
												</xsl:for-each>
												<xsl:if test="count(child::*)=0">
													<td class="bordered">
														<p class="table">
															<xsl:text> </xsl:text>
														</p>
													</td>
												</xsl:if>
												<xsl:if test="randomList">
													<td class="bordered">
														<p class="table">
														  <xsl:for-each select="randomList">
															<xsl:for-each select="listItem">
																<xsl:if test="../@listItemPrefix = 'pf02'">
																	<xsl:text>- </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf01'">
																	<xsl:text> </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf03'">
																	<xsl:text>- </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf04'">
																	<xsl:text>⊙ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf05'">
																	<xsl:text>○ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf06'">
																	<xsl:text>□ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf07'">
																	<xsl:text>• </xsl:text>
																</xsl:if>
																<xsl:for-each select="para">
																	<xsl:apply-templates select="." mode="para"/>
																</xsl:for-each>
															</xsl:for-each>
													      </xsl:for-each>
														</p>
													</td>
												</xsl:if>
												
												
									</xsl:otherwise>
								</xsl:choose>
							</xsl:for-each>
					     </tr>
				</xsl:for-each>
				</thead>
				</xsl:if>
		<tbody>
	
			<xsl:if test="tgroup/tbody/row">
				<xsl:for-each select="tgroup/tbody/row">
				<tr>
				<xsl:for-each select="entry">
					<xsl:choose>
					<xsl:when test="./@morerows">
						<xsl:element name="td">
						<xsl:attribute name="class">bordered</xsl:attribute>
						<xsl:attribute name="rowspan"><xsl:value-of select="./@morerows + 1"/></xsl:attribute>
							<xsl:for-each select="para">
								<p class="table">
								<xsl:apply-templates select="." mode="para"/>
								</p>
							</xsl:for-each>
						</xsl:element>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
						<xsl:when test="./@namest">
							<xsl:element name="td">
							<xsl:attribute name="class">bordered</xsl:attribute>
							<xsl:attribute name="colspan">
									<!-- <xsl:value-of select="number(substring(./@nameend,4,1)) - number(substring(./@namest,4,1)) + number(1)"/> -->
									<xsl:value-of select="./@nameend - ./@namest + 1"/>
							</xsl:attribute>
							<xsl:for-each select="para">
								<p class="table">
									<xsl:apply-templates select="." mode="para"/>
								</p>
							</xsl:for-each>
							</xsl:element>
						</xsl:when>
						<xsl:otherwise>
							<td class="bordered">
							<xsl:for-each select="para">
								<p class="table">
									<xsl:apply-templates select="." mode="para"/>
								</p>
							</xsl:for-each>
							</td>
						</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>
				</tr>
				</xsl:for-each>
			</xsl:if>
		</tbody>
	</table>
</xsl:template>




<!--internalRef内容解析-->
<xsl:template match="*" mode="internalRef">
<xsl:param name="name111"/>
	
<xsl:param name="name">
	<xsl:value-of select="@internalRefTargetType"/>
</xsl:param>
<xsl:param name="value">
	<xsl:value-of select="normalize-space(@internalRefId)"/>
</xsl:param>
<xsl:param name="text"></xsl:param>

	<!--para-->
	<xsl:if test="$name = 'para'">
	<a>
	<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
	<xsl:choose>
		<xsl:when test="$text=''">
		<xsl:text>段落 </xsl:text>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="$text"/><xsl:text> </xsl:text>
		</xsl:otherwise>
	</xsl:choose>
	</a>
	</xsl:if>
	<!--
-->
	<xsl:if test="$name = 'figure'">
		<xsl:for-each select="//*">
			<xsl:if test="name(.)=$name">
				<xsl:if test="@id=$value">
				<!--<xsl:with-param name="name111"><xsl:value-of select="$value"/></xsl:with-param>-->
				<a>
				
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体 </xsl:text><xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/><xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
				</a>
				</xsl:if>
			</xsl:if>
		</xsl:for-each>
	</xsl:if>
	<!--supequip-->
	<xsl:if test="$name = 'supequip'">
		<xsl:for-each select="//supportEquipDescrGroup">
			<xsl:for-each select="supportEquipDescr">
				<xsl:if test="@id = $value">
					<a>
						<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
						<xsl:value-of select="name"/>
					</a>
				</xsl:if>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:if>
		
	<!--supply-->
	<xsl:if test="$name = 'supply'">
		<xsl:for-each select="//supplyDescrGroup">
			<xsl:for-each select="supplyDescr">
				<xsl:if test="@id = $value">
					<a>
						<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
						<xsl:value-of select="name"/>
					</a>
				</xsl:if>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:if>
	
	<!--spares-->
	<xsl:if test="$name = 'spares'">
		<xsl:for-each select="//spareDescrGroup">
			<xsl:for-each select="spareDescr">
				<xsl:if test="@id = $value">
					<a>
						<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
						<xsl:value-of select="name"/>
					</a>
				</xsl:if>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:if>
	
	<!--step-->
	<xsl:if test="$name = 'step'">
		<a>
			<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
			<xsl:choose>
				<xsl:when test="$text=''">
				<xsl:text>步骤 </xsl:text><xsl:text> </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$text"/><xsl:text> </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</a>
	</xsl:if>
	<!--table-->
	<xsl:if test="$name = 'table'">
		<a>
			<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
			<xsl:choose>
				<xsl:when test="$text=''">
				<xsl:text>表格 </xsl:text><xsl:text> </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$text"/><xsl:text> </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</a>
	</xsl:if>
	<!--irtt01-->
	<xsl:if test="$name = 'irtt01'">
		<a>
			<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
			<xsl:choose>
				<xsl:when test="$text=''">
				<xsl:text>多媒体 </xsl:text><xsl:text> </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$text"/><xsl:text> </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</a>
	</xsl:if>
	<!--irtt02-->
	<xsl:if test="$name = 'irtt02'">
		<a>
			<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
			<xsl:choose>
				<xsl:when test="$text=''">
				<xsl:text>表格 </xsl:text><xsl:text> </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$text"/><xsl:text> </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</a>
	</xsl:if>
	<!--irtt05-->
	<xsl:if test="$name = 'irtt05'">
		<xsl:for-each select="//supportEquipDescrGroup">
			<xsl:for-each select="supportEquipDescr">
				<xsl:if test="@id = $value">
					<a>
						<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
						<xsl:value-of select="name"/>
					</a>
				</xsl:if>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:if>
	<!--irtt07-->
	<xsl:if test="$name = 'irtt07'">
		<a>
			<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
			<xsl:choose>
				<xsl:when test="$text=''">
				<xsl:text>段落 </xsl:text><xsl:text> </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$text"/><xsl:text> </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</a>
	</xsl:if>
	<!--irtt11-->
	<xsl:if test="$name = 'irtt11'">
		<a>
			<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
			<xsl:choose>
				<xsl:when test="$text=''">
				<xsl:text>多媒体 </xsl:text><xsl:text> </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$text"/><xsl:text> </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</a>
	</xsl:if>
	<!--hotspot-->
	<xsl:if test="$name = 'hotspot'">
	     <xsl:value-of select="text()"/>
		<a>
		<xsl:attribute name="href">javascript:void(0);</xsl:attribute>
		<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
    
			<xsl:attribute name="id">
				<!--<xsl:value-of select="$value"/>-->
				<xsl:call-template name="handlepagefragment">
					 <xsl:with-param name="appId" select="@internalRefId"/>
				</xsl:call-template>
			</xsl:attribute>
			<xsl:attribute name="hotspot">
				<!--<xsl:value-of select="$value"/>-->
				<xsl:call-template name="handlepagefragment88">
					 <xsl:with-param name="appId" select="@internalRefId"/>
				</xsl:call-template>
				</xsl:attribute>
			
			<xsl:attribute name="applicationStructureName">
				<!--<xsl:value-of select="$value"/>-->
				<xsl:call-template name="handlepagefragment99">
					 <xsl:with-param name="appId" select="@internalRefId"/>
				</xsl:call-template>
			</xsl:attribute>
			
			<xsl:attribute name="infoEntityIdent">
				<xsl:call-template name="handlepagefragment1">
					 <xsl:with-param name="appId1" select="@internalRefId"/>
				</xsl:call-template>
			</xsl:attribute>
		
		
		<xsl:choose>
			<xsl:when test="$text=''">
			           
						<xsl:text>多媒体[</xsl:text>
						<xsl:call-template name="handlepagefragment2">
							 <xsl:with-param name="appId" select="@internalRefId"/>
						</xsl:call-template>					
						<!--<xsl:value-of select="number(substring(./@internalRefId,23,4))"/>-->
						<xsl:text>]</xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
		</xsl:choose>
		
		</a>
	</xsl:if>
	<xsl:if test="$name = 'u3d'">
		<a onclick="clickU3d(this)" name="u3dclick">
			<xsl:attribute name="href">javascript:void(0);</xsl:attribute>
			<xsl:attribute name="id"><xsl:value-of select="@internalRefId"/></xsl:attribute>
			[U3D]
		</a>
		<!-- <xsl:value-of select="../text()"/><xsl:text> </xsl:text> -->
	</xsl:if>
</xsl:template>

 <xsl:template name="handlepagefragment" >
       <xsl:param name="appId"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId">
						<xsl:value-of select="@id"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>
 <xsl:template name="handlepagefragment88" >
       <xsl:param name="appId"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId">
						<xsl:value-of select="@applicationStructureName"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>
<xsl:template name="handlepagefragment99" >
       <xsl:param name="appId"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId">
						<xsl:value-of select="@applicationStructureName"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>

<xsl:template name="handlepagefragment2" >
       <xsl:param name="appId"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId">
						<xsl:value-of select="@applicationStructureName"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>
              
       
       <xsl:template name="handlepagefragment1" >
       <xsl:param name="appId1"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId1">
						<xsl:value-of select="../@infoEntityIdent"/> 
					  </xsl:if>
                    </xsl:for-each> 
       </xsl:template>




<!--preliminaryRqmts节点解析-->
<xsl:template match="*" mode="preliminaryRqmts">
	<a name="prelreqs"><p class="titleItalic">{{必要准备工作}}</p></a>
		<!--必要条件-->
		<xsl:for-each select=".">
		
			<!--reqCondGroup节点解析-->
			<xsl:for-each select="reqCondGroup">
				<xsl:apply-templates select="." mode="reqCondGroup"/>
			</xsl:for-each>
			
			<!--reqPersons节点解析-->
			<xsl:for-each select="reqPersons">
				<xsl:apply-templates select="." mode="reqPersons"/>
			</xsl:for-each>
			
			<!--reqTechInfoGroup节点解析-->
			<xsl:for-each select="reqTechInfoGroup">
			<xsl:apply-templates select="." mode="reqTechInfoGroup"/>
			</xsl:for-each>
			
			<!--reqSupportEquips节点解析-->
			<xsl:for-each select="reqSupportEquips">
			<xsl:apply-templates select="." mode="reqSupportEquips"/>
			</xsl:for-each>
			
			<!--reqSupplies节点解析-->
			<xsl:for-each select="reqSupplies">
				<xsl:apply-templates select="." mode="reqSupplies"/>
			</xsl:for-each>
			
			<!--reqSpares节点解析-->
			<xsl:for-each select="reqSpares">
			<xsl:apply-templates select="." mode="reqSpares"/>
			</xsl:for-each>
			
			<!--reqSafety节点解析-->
			<xsl:for-each select="reqSafety">
				<xsl:apply-templates select="." mode="reqSafety"/>
			</xsl:for-each>
		</xsl:for-each>
		
</xsl:template>

<!--reqCondGroup节点解析-->
<xsl:template match="*" mode="reqCondGroup">
<p class="subtitle">必备条件</p>
	<a name="reqconds"/>
	<table cellspacing="0" class="bordered" width="800px">
		<caption class="tableTitle">表 %TABLENO% 必备条件</caption>
		<colgroup>
			<col/>
			<col/>
		</colgroup>
		<thead>
			<tr>
				<th class="bordered">
					<p class="table">条件</p>
				</th>
				<th class="bordered">
					<p class="table">数据模块/技术出版物</p>
				</th>
			</tr>
		</thead>
		<tbody>
		<xsl:for-each select="*">
			<tr>
			<!--noConds节点-->
			<xsl:if test="name(.) = 'noConds'">
				<td class="bordered"><p class="table">无</p></td>
				<td class="bordered"><p class="table"></p></td>
			</xsl:if>
			
			<!--reqCondDm节点-->
			<xsl:if test="name(.) = 'reqCondDm'">
				<td class="bordered">
					<p class="table">
						<xsl:value-of select="reqCond"/>
					</p>
				</td>
				<td class="bordered">
					<p class="table">
						<xsl:apply-templates select="*" mode="dmRef"/>
					</p>
				</td>
			</xsl:if>
			
			<!--reqCondPm节点-->
			<xsl:if test="name(.) = 'reqCondPm'">
				<td class="bordered">
					<p class="table">
						<xsl:value-of select="reqCond"/>
					</p>
				</td>
				<td class="bordered">
					<p class="table">
						<xsl:apply-templates select="pmRef/pmRefIdent/pmCode" mode="pmCode"/>
					</p>
				</td>
			</xsl:if>
			
			<!--reqCondNoRef节点-->
			<xsl:if test="name(.) = 'reqCondNoRef'">
				<td class="bordered">
					<p class="table">
						<xsl:apply-templates select="reqCond" mode="para"/>
					</p>
				</td>
				<td class="bordered">
					<p class="table"></p>
				</td>
			</xsl:if>
			
			<!--reqCondCircuitBreaker节点-->
			<xsl:if test="name(.) = 'reqCondCircuitBreaker'">
				<td class="bordered">
					<p class="table">
						<xsl:value-of select="reqCond"/>
					</p>
				</td>
				<td class="bordered">
					<p class="table"></p>
				</td>
			</xsl:if>
			
			<!--reqCondExternalPub节点-->
			<xsl:if test="name(.) = 'reqCondExternalPub'">
				<td class="bordered">
					<p class="table">
						<xsl:value-of select="reqCond"/>
					</p>
				</td>
				<td class="bordered">
					<p class="table"><xsl:value-of select="externalPubRef/externalPubRefIdent/externalPubCode/@pubCodingScheme"/>-<xsl:value-of select="externalPubRef/externalPubRefIdent/externalPubCode"/></p>
				</td>
			</xsl:if>
			
			</tr>
		</xsl:for-each>
		</tbody>
	</table>
	<br/>
</xsl:template>

<!--reqPersons节点解析-->
<xsl:template match="*" mode="reqPersons">
<p class="subtitle">所需人员</p>
	<a name="supequip"/>
	<table cellspacing="0" class="bordered" width="800px">
		<caption class="tableTitle">表 %TABLENO% 所需人员</caption>
		<colgroup>
			<col/>
			<col/>
			<col/>
			<col/>
		</colgroup>
	<thead>
		<tr>
			<th class="bordered">
				<p class="table">人员</p>
			</th>
			<th class="bordered">
				<p class="table">类别</p>
			</th>
			<th class="bordered">
				<p class="table">技能水平</p>
			</th>
			<th class="bordered">
				<p class="table">专业代码</p>
			</th>
			<th class="bordered">
				<p class="table">预计时间</p>
			</th>
		</tr>
	</thead>
	<tbody>
	<xsl:choose>
		<xsl:when test="noPersons">
			<tr>
				<td class="bordered"><p class="table">无</p></td>
				<td class="bordered"><p class="table"></p></td>
				<td class="bordered"><p class="table"></p></td>
				<td class="bordered"><p class="table"></p></td>
				<td class="bordered"><p class="table"></p></td>
			</tr>
		</xsl:when>
	<xsl:otherwise>
		<xsl:choose>
		<xsl:when test="personnel/@numRequired">
			<xsl:for-each select="person">
				<tr>
					<td class="bordered">
						<p class="table">
							<xsl:text>Man </xsl:text><xsl:value-of select="@man"/>
						</p>
					</td>
					<td class="bordered">
						<p class="table"><xsl:value-of select="personCategory/@personCategoryCode"/>
						</p>
					</td>
					<td class="bordered">
						<p class="table">
							<xsl:apply-templates select="personSkill" mode="personSkill"/>
						</p>
					</td>
					<td class="bordered">
						<p class="table"><xsl:value-of select="trade"/></p>
					</td>
					<td class="bordered">
						<xsl:if test="estimatedTime">
							<xsl:value-of select="estimatedTime"/><xsl:text> </xsl:text><xsl:value-of select="estimatedTime/@unitOfMeasure"/>
						</xsl:if>
					</td>
				</tr>
				<xsl:if test="position()=last()">
					<xsl:if test="../personnel">
						<xsl:call-template name="loop">
							<xsl:with-param name="Count"><xsl:value-of select="number(../personnel/@numRequired)-position()"/></xsl:with-param>
						</xsl:call-template>
					</xsl:if>
				</xsl:if>
			</xsl:for-each>
		</xsl:when>
		<xsl:otherwise>
		
		<xsl:choose>
			<xsl:when test="person">
				<xsl:for-each select="person">
					<tr>
						<td class="bordered">
							<p class="table">
								<xsl:value-of select="@man"/>
							</p>
						</td>
						<td class="bordered">
							<p class="table"><xsl:value-of select="personCategory/@personCategoryCode"/>
							</p>
						</td>
						<td class="bordered">
							<p class="table">
								<xsl:apply-templates select="personSkill" mode="personSkill"/>
							</p>
						</td>
						<td class="bordered">
							<p class="table"><xsl:value-of select="trade"/></p>
						</td>
						<td class="bordered">
							<p class="table">
								<xsl:if test="estimatedTime">
									<xsl:value-of select="estimatedTime"/><xsl:text> </xsl:text><xsl:value-of select="estimatedTime/@unitOfMeasure"/>
								</xsl:if>
							</p>
						</td>
					</tr>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td class="bordered"><p class="table">无</p></td>
					<td class="bordered"><p class="table"></p></td>
					<td class="bordered"><p class="table"></p></td>
					<td class="bordered"><p class="table"></p></td>
					<td class="bordered"><p class="table"></p></td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
			
		</xsl:otherwise>
		</xsl:choose>	
	</xsl:otherwise>
	</xsl:choose>			
</tbody>
</table>
</xsl:template>

<!--personSkill节点解析-->
<xsl:template match="*" mode="personSkill">

	<xsl:if test="@skillLevelCode = 'sk01'">
		<xsl:text>初级</xsl:text>
	</xsl:if>
	<xsl:if test="@skillLevelCode = 'sk02'">
		<xsl:text>中级</xsl:text>
	</xsl:if>
	<xsl:if test="@skillLevelCode = 'sk03'">
		<xsl:text>高级</xsl:text>
	</xsl:if>

</xsl:template>

<xsl:template name="loop">
  <xsl:param name="Count"/>
  <xsl:if test="$Count&lt;1"></xsl:if>
  <xsl:if test="$Count&gt;1">
  	<tr>
		<td class="bordered">
			<p class="table">As required</p>
		</td>
		<td class="bordered">
			<p class="table"></p>
		</td>
		<td class="bordered">
			<p class="table"></p>
		</td>
		<td class="bordered">
			<p class="table"></p>
		</td>
		<td class="bordered">
			<p class="table"></p>
		</td>
	</tr>
    <xsl:value-of select="$Count"/>
    <xsl:call-template name="loop">
      <xsl:with-param name="Count"><xsl:value-of select="number($Count)-1"/></xsl:with-param>
    </xsl:call-template>
  </xsl:if>
  <xsl:if test="$Count=1">
	<tr>
		<td class="bordered">
			<p class="table">As required</p>
		</td>
		<td class="bordered">
			<p class="table"></p>
		</td>
		<td class="bordered">
			<p class="table"></p>
		</td>
		<td class="bordered">
			<p class="table"></p>
		</td>
		<td class="bordered">
			<p class="table"></p>
		</td>
	</tr>
  </xsl:if>
</xsl:template>

<!--reqTechInfoGroup节点解析-->
<xsl:template match="*" mode="reqTechInfoGroup">

</xsl:template>

<!--reqSupportEquips节点解析-->
<xsl:template match="*" mode="reqSupportEquips">
<p class="subtitle">支持装备</p>
	<a name="supequip"/>
	<table cellspacing="0" class="bordered" width="800px">
		<caption class="tableTitle">表 %TABLENO% 支持装备</caption>
		<colgroup>
			<col/>
			<col/>
			<col/>
			<col/>
		</colgroup>
	<thead>
		<tr>
			<th class="bordered">
				<p class="table">名称</p>
			</th>
			<th class="bordered">
				<p class="table">供应商标识</p>
			</th>
			<th class="bordered">
				<p class="table">数量</p>
			</th>
			<th class="bordered">
				<p class="table">备注</p>
			</th>
		</tr>
	</thead>
	<tbody>
	<xsl:choose>
		<xsl:when test="noSupportEquips">
			<tr>
				<td class="bordered"><p class="table">无</p></td>
				<td class="bordered"><p class="table"></p></td>
				<td class="bordered"><p class="table"></p></td>
				<td class="bordered"><p class="table"></p></td>
			</tr>
		</xsl:when>
	<xsl:otherwise>
		<xsl:for-each select="supportEquipDescrGroup/supportEquipDescr">
			<tr>
				<td class="bordered">
				<xsl:if test="@id">
					<a><xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute></a>
				</xsl:if>
						<p class="table">
							<xsl:value-of select="name"/>
						</p>
					
				</td>
				<td class="bordered">
					<p class="table"><xsl:value-of select="identNumber/manufacturerCode"/>/<xsl:value-of select="identNumber/partAndSerialNumber/partNumber"/>
					</p>
				</td>
				<td class="bordered">
					<p class="table">
						<xsl:value-of select="reqQuantity"/>
						<xsl:value-of select="reqQuantity/@unitOfMeasure"/>
					</p>
				</td>
				<td class="bordered">
					<p class="table"><xsl:value-of select="remarks/simplePara"/></p>
				</td>
			</tr>
		</xsl:for-each>
	</xsl:otherwise>
	</xsl:choose>			
</tbody>
</table>
</xsl:template>

<!--reqSupplies节点解析-->
<xsl:template match="*" mode="reqSupplies">
<p class="subtitle">原材料与消耗品</p>
	<a name="supplies"/>
	<table cellspacing="0" class="bordered" width="800px">
		<caption class="tableTitle">表 %TABLENO% 原材料与消耗品</caption>
		<colgroup>
			<col/>
			<col/>
			<col/>
			<col/>
		</colgroup>
		<thead>
			<tr>
				<th class="bordered">
					<p class="table">名称</p>
				</th>
				<th class="bordered">
					<p class="table">供应商标识</p>
				</th>
				<th class="bordered">
					<p class="table">数量</p>
				</th>
				<th class="bordered">
					<p class="table">备注</p>
				</th>
			</tr>
		</thead>
		<tbody>
		<xsl:choose>
			<xsl:when test="noSupplies">
				<tr>
					<td class="bordered"><p class="table">无</p></td>
					<td class="bordered"><p class="table"></p></td>
					<td class="bordered"><p class="table"></p></td>
					<td class="bordered"><p class="table"></p></td>
				</tr>
			</xsl:when>
		<xsl:otherwise>
			<xsl:for-each select="supplyDescrGroup/supplyDescr">
				<tr>
					<td class="bordered">
						<xsl:if test="@id">
							<a><xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute></a>
						</xsl:if>
						<p class="table">
							<xsl:value-of select="name"/>
						</p>
					</td>
					<td class="bordered">
						<p class="table">
							<xsl:value-of select="identNumber/manufacturerCode"/>
						</p>
					</td>
					<td class="bordered">
						<p class="table">
							<xsl:value-of select="reqQuantity"/>
						</p>
					</td>
					<td class="bordered">
						<p class="table"><xsl:value-of select="remarks/simplePara"/></p>
					</td>
				</tr>
			</xsl:for-each>
		</xsl:otherwise>
		</xsl:choose>
	</tbody>
</table>
</xsl:template>

<!--reqSpares节点解析-->
<xsl:template match="*" mode="reqSpares">
<p class="subtitle">备件列表</p>
	<a name="spares"/>
	<table cellspacing="0" class="bordered" width="800px">
		<caption class="tableTitle">表 %TABLENO% 备件列表</caption>
		<colgroup>
			<col/>
			<col/>
			<col/>
			<col/>
		</colgroup>
		<thead>
			<tr>
				<th class="bordered">
					<p class="table">名称</p>
				</th>
				<th class="bordered">
					<p class="table">供应商标识</p>
				</th>
				<th class="bordered">
					<p class="table">数量</p>
				</th>
				<th class="bordered">
					<p class="table">备注</p>
				</th>
			</tr>
		</thead>
		<tbody>
		<xsl:choose>
			<xsl:when test="noSpares">
				<tr>
					<td class="bordered"><p class="table">无</p></td>
					<td class="bordered"><p class="table"></p></td>
					<td class="bordered"><p class="table"></p></td>
					<td class="bordered"><p class="table"></p></td>
				</tr>
			</xsl:when>
		<xsl:otherwise>
			<xsl:for-each select="spareDescrGroup/spareDescr">
				<tr>
					<td class="bordered">
						<xsl:if test="@id">
							<a><xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute></a>
						</xsl:if>
							<p class="table">
								<xsl:value-of select="name"/>
							</p>
					</td>
					<td class="bordered">
						<p class="table">
							<xsl:value-of select="identNumber/manufacturerCode"/>
						</p>
					</td>
					<td class="bordered">
						<p class="table">
							<xsl:value-of select="reqQuantity"/>
						</p>
					</td>
					<td class="bordered">
						<p class="table"><xsl:value-of select="remarks/simplePara"/></p>
					</td>
				</tr>
			</xsl:for-each>
		</xsl:otherwise>
		</xsl:choose>
</tbody>
</table>
</xsl:template>

<!--reqSafety节点解析-->
<xsl:template match="*" mode="reqSafety">
<xsl:for-each select="safetyRqmts">
	<xsl:choose>
		<xsl:when test="noSafety">
		</xsl:when>
		<xsl:otherwise>
			<p class="subtitle">{{安全条件}}</p>
			<xsl:for-each select="*">
				<xsl:apply-templates select="." mode="para_warning_caution_note"/>
			</xsl:for-each>
		</xsl:otherwise>
	</xsl:choose>
</xsl:for-each>

</xsl:template>

<!--list节点解析-->
<xsl:template match="*" mode="list">
	<xsl:if test="name(.) = 'sequentialList'">
		<xsl:if test="title">
			<xsl:apply-templates select="title" mode="para"/>
		</xsl:if>
		<xsl:for-each select="listItem">
		<div class="indent">
			<xsl:value-of select="position()"/><xsl:text>. </xsl:text>
			<xsl:for-each select="para">
				<xsl:apply-templates select="." mode="para"/>
			</xsl:for-each>
		</div>
		</xsl:for-each>
	</xsl:if>
	<xsl:if test="name(.) = 'randomList'">
		<xsl:if test="title">
			<xsl:apply-templates select="title" mode="para"/>
		</xsl:if>
			<xsl:for-each select="listItem">
			<div class="indent">
					<xsl:if test="../@listItemPrefix = 'pf02'">
					<xsl:text>- </xsl:text>
					</xsl:if>
					<xsl:if test="../@listItemPrefix = 'pf01'">
					<xsl:text>? </xsl:text>
					</xsl:if>
					
					<xsl:for-each select="para">
						<xsl:choose>
						  <xsl:when test="child::*">
							<xsl:apply-templates select="." mode="para"/>
						  </xsl:when>
						  <xsl:otherwise>
							<xsl:text>- </xsl:text><xsl:apply-templates select="." mode="para"/>
						  </xsl:otherwise>
						</xsl:choose>
					</xsl:for-each>
			</div>
			</xsl:for-each>
	</xsl:if>
	<xsl:if test="name(.) = 'definitionList'">
		<table class="tableIndent">
		<xsl:if test="title">
		<!--<caption class="tableTitle">表 %TABLENO% <xsl:value-of select="title"/></caption>-->
		</xsl:if>
			<tbody>
			<xsl:for-each select="definitionListHeader">
				<tr>
					<th><xsl:value-of select="termTitle"/></th>
					<th><xsl:value-of select="definitionTitle"/></th>
				</tr>
			</xsl:for-each>
				<xsl:for-each select="definitionListItem">
					<tr>
						<xsl:if test="listItemTerm">
							<td class="clear">
								<xsl:value-of select="listItemTerm"/>
							</td>
							<td class="clear">
								<xsl:apply-templates select="listItemDefinition/para" mode="para"/>
							</td>
						</xsl:if>
					</tr>
				</xsl:for-each>
			</tbody>
		</table>
	</xsl:if>
	<xsl:if test="name(.) = 'attentionRandomList'">
		<xsl:for-each select="attentionRandomListItem">
				<xsl:for-each select="attentionListItemPara">
					<xsl:text>- </xsl:text><xsl:apply-templates select="." mode="para"/>
				</xsl:for-each>
		</xsl:for-each>
		
	</xsl:if>
	
</xsl:template>

<!--para节点解析-->
<xsl:template match="*" mode="para">
	<xsl:choose>
		<xsl:when test="./child::*">
			<xsl:value-of select="./text()"/>
			<xsl:for-each select="*">
			<xsl:if test="normalize-space(internalRef)=' '" >
					<xsl:value-of select="./text()"/>
				
			</xsl:if>
			<xsl:if test="internalRef">
				<xsl:value-of select="./text()"/>
			</xsl:if>
			
			<!--para节点-->
			<xsl:if test="name(.) = 'para'">
				<xsl:apply-templates select="." mode="para"/>
			</xsl:if>
			<!--internalRef节点-->
			<xsl:if test="name(.) = 'internalRef'">
				<xsl:apply-templates select="." mode="internalRef"/>
			</xsl:if>
				<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
									<xsl:choose>
											<xsl:when test="../@listItemPrefix = 'pf01'">
											    <xsl:text> </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf03'">
											  <xsl:text>- </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf04'">
											    <xsl:text>⊙ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf05'">
											    <xsl:text>○ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf06'">
											    <xsl:text>□ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf07'">
											    <xsl:text>• </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												 <xsl:text>- </xsl:text>
											</xsl:otherwise>
											
										</xsl:choose>
										<!--<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>-->
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para1"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
			
			<!--list节点-->
			<xsl:if test="name(.) = 'sequentialList' or name(.) = 'definitionList' or name(.) = 'attentionRandomList'">
				<xsl:apply-templates select="." mode="list"/>
			</xsl:if>
			<!--superScript节点-->
			<xsl:if test="name(.) = 'superScript'">
				<sup><xsl:value-of select="."/></sup>
			</xsl:if>
			<!--subScript节点-->
			<xsl:if test="name(.) = 'subScript'">
				<sub><xsl:value-of select="."/></sub>
			</xsl:if>
			<!--symbol节点-->
			<xsl:if test="name(.) = 'symbol'">
				<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
			</xsl:if>
			<!--emphasis节点-->
			<xsl:if test="name(.) = 'emphasis'">
				<xsl:apply-templates select="." mode="emphasis"/>
			</xsl:if>
			<!--dmRef节点-->
			<xsl:if test="name(.) = 'dmRef'">
				<xsl:apply-templates select="." mode="dmRef"/>
			</xsl:if>	
			<xsl:apply-templates select=".." mode="text">
				<xsl:with-param name="dnum">
					<xsl:value-of select="position() + 1"/>
				</xsl:with-param>
			</xsl:apply-templates>
			</xsl:for-each>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="."/><br/>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

		<xsl:template match="*" mode="para1">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
				
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
									<xsl:choose>
											<xsl:when test="../@listItemPrefix = 'pf01'">
											    <xsl:text> </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf03'">
											  <xsl:text>- </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf04'">
											    <xsl:text>⊙ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf05'">
											    <xsl:text>○ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf06'">
											    <xsl:text>□ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf07'">
											    <xsl:text>• </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												 <xsl:text>• </xsl:text>
											</xsl:otherwise>
											
										</xsl:choose>
										<!--<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>. </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>-->
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para2"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
			<xsl:template match="*" mode="para2">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
				
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
										<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para3"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	

    	<xsl:template match="*" mode="para3">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
				
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
									 <xsl:choose>
											<xsl:when test="../@listItemPrefix = 'pf01'">
											    <xsl:text> </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf03'">
											  <xsl:text>- </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf04'">
											    <xsl:text>⊙ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf05'">
											    <xsl:text>○ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf06'">
											    <xsl:text>□ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf07'">
											    <xsl:text>• </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												 <xsl:text>- </xsl:text>
											</xsl:otherwise>
											
										</xsl:choose>
										<!--<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>. </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>-->
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para4"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
	    	<xsl:template match="*" mode="para4">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
				
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
										<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>. </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para4"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
		
	


<!--emphasis内容解析-->
<xsl:template match="*" mode="emphasis">
	<xsl:choose>
	  <xsl:when test="@emphasisType">
		<!--em01节点(加粗)-->
		<xsl:if test="@emphasisType = 'em01'">
			<b><xsl:value-of select="."/></b>
		</xsl:if>
		<!--em02节点(斜体)-->
		<xsl:if test="@emphasisType = 'em02'">
			<i><xsl:value-of select="."/></i>
		</xsl:if>
		<!--em03节点(下划线)-->
		<xsl:if test="@emphasisType = 'em03'">
			<span style="TEXT-DECORATION: underline"><xsl:value-of select="."/></span>
		</xsl:if>
		<!--em04节点(上划线)-->
		<xsl:if test="@emphasisType = 'em04'">
			<span style="TEXT-DECORATION: overline"><xsl:value-of select="."/></span>
		</xsl:if>
		<!--em05节点(删除线)-->
		<xsl:if test="@emphasisType = 'em05'">
			<span style="TEXT-DECORATION: line-through">
				<xsl:value-of select="."/>
			</span>
		</xsl:if>
	  </xsl:when>
	  <xsl:otherwise>
		  <!--em节点(加粗)默认情况-->
		<xsl:choose>
		  <xsl:when test="./child::*">
				<b><xsl:apply-templates select="." mode="para"/></b>
		  </xsl:when>
		  <xsl:otherwise>
				<b><xsl:value-of select="."/></b>
		  </xsl:otherwise>
		</xsl:choose>
		
	  </xsl:otherwise>
	</xsl:choose>
</xsl:template>

<!--text内容解析-->
<xsl:template match="*" mode="text">
	<xsl:param name="dnum"/>
	<xsl:value-of select="text()[number($dnum)]"/>
</xsl:template>

<!--para_warning_caution_note内容解析-->
<xsl:template match="*" mode="para_warning_caution_note">

	<!--para节点-->
	<xsl:if test="name(.) = 'para'">
		<p class="indent">
			<xsl:apply-templates select="." mode="para"/>
		</p>
	</xsl:if>
	<!--warning节点-->
	<xsl:if test="name(.) = 'warning'">

		<div class="warningborder">
		<div class="warning">
		<table cellspacing="0" align="center">
		<tr align="center" valign="middle">
		<td align="center"><b>警告</b></td>
		</tr>
		<tr>
		<td>
		<ul>
		<li>
									
		<span><a name="N10128"></a>
			<p class="warnText">
					<xsl:apply-templates select="warningAndCautionPara" mode="para"/>
				</p> </span>
								
		</li>
		</ul>
		</td>
		</tr>
		<tr>
		<td style="lineHeight:2px;" STYLE="font-size:1">
		<div class="hideprint">
		<font height="2px" size="1" color="FFFFFF"></font>
		</div>
		</td>
		</tr>
		</table>
		</div>
		</div>		
	</xsl:if>
	<!--caution节点-->
<xsl:if test="name(.) = 'caution'">
	<div class="cautionborder">
	<div class="warning">
	<table cellspacing="0" align="center">
	<tr align="center" valign="middle">
	<td align="center"><b>注意</b></td>
	</tr>
	<tr>
	<td>
	<ul>
	<li>
							
	<span><a name="N10172"></a>
		<p class="cautText">
				<xsl:apply-templates select="warningAndCautionPara" mode="para"/>
			</p></span>
						
	</li>
	</ul>
	</td>
	</tr>
	<tr>
	<td style="lineHeight:2px;" STYLE="font-size:1">
	<div class="hideprint">
	<font height="2px" size="1" color="FFFFFF"></font>
	</div>
	</td>
	</tr>
	</table>
	</div>
	</div>	
		
	</xsl:if>
	<!--note节点-->
	<xsl:if test="name(.) = 'note'">
				<!--<p class="noteTitle">提示</p>-->
				<xsl:if test="notePara">
				
				
				<div class="noteborder">
		<div class="note">
		<table cellspacing="0" border="0" align="center">
		<tr align="center" valign="middle">
		<td align="center"><b>提示</b></td>
		</tr>
		<tr>
		<td>
									<span>
					<xsl:for-each select="notePara">
						<p class="noteText">
							<xsl:apply-templates select="." mode="para"/>
						</p>
					</xsl:for-each></span>
								</td>
		</tr>
		<tr>
		<td style="lineHeight:2px;" STYLE="font-size:1">
		<div class="hideprint">
		<font height="2px" size="1" color="FFFFFF"></font>
		</div>
		</td>
		</tr>
		</table>
		</div>
		</div>
				</xsl:if>
</xsl:if>
</xsl:template>

<!--refs内容解析-->
<xsl:template match="*" mode="refs">
	<p class="titleItalic">{{参考}}</p>
	<!--<a>
		<xsl:attribute name="name"><xsl:value-of select="."/></xsl:attribute>
	</a>-->
	<table cellspacing="0" class="bordered" width="800px">
		<caption class="tableTitle">表 %TABLENO% 参考</caption>
		<colgroup>
			<col/>
			<col/>
		</colgroup>
		<thead>
			<tr>
				<th class="bordered">
					<p class="table">数据模块/技术出版物</p>
				</th>
				<th class="bordered">
					<p class="table">标题</p>
				</th>
			</tr>
		</thead>
		<tbody>
		<xsl:for-each select="dmRef|pmRef|externalPubRef">
			<tr>
				<td class="bordered">
					<p class="table">
						<xsl:if test="name(.) = 'dmRef'">
							<xsl:apply-templates select="." mode="dmRef"/>
						</xsl:if>
						<xsl:if test="name(.) = 'pmRef'">
							<a>
								<xsl:apply-templates select="pmRefIdent/pmCode" mode="pmCode"/>
							</a>
						</xsl:if>
						<xsl:if test="name(.) = 'externalPubRef'">
							<a>
								<xsl:value-of select="externalPubRefIdent/externalPubCode/@pubCodingScheme"/> - 
								<xsl:value-of select="externalPubRefIdent/externalPubCode"/>
							</a>
						</xsl:if>
					</p>
				</td>
				<td class="bordered">
					<p class="table">
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:value-of select="dmRefAddressItems/dmTitle/techName"/> -
						<xsl:value-of select="dmRefAddressItems/dmTitle/infoName"/>
					</xsl:if>
					<xsl:if test="name(.) = 'pmRef'">
						<xsl:value-of select="pmRefAddressItems/pmTitle"/>
					</xsl:if>
					<xsl:if test="name(.) = 'externalPubRef'">
						<xsl:value-of select="externalPubRefIdent/externalPubTitle"/>
					</xsl:if>
					</p>
				</td>
			</tr>
		</xsl:for-each>
		</tbody>
	</table>
</xsl:template>

<!--dmRef内容解析-->
<xsl:template match="*" mode="dmRef">

<a href="javascript:void(0);">
	<xsl:attribute name="href">%PATH%/DMC-<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>.html<xsl:if test="@referredFragment"><xsl:text>&amp;inner_id=</xsl:text><xsl:value-of select="@referredFragment"/></xsl:if>
	</xsl:attribute>
	<xsl:attribute name="onclick">refDM('<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>')</xsl:attribute><xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>
	<xsl:if test="@referredFragment">
		<xsl:apply-templates select="." mode="dmRef_value"/>
	</xsl:if>
</a>
</xsl:template>


<xsl:template match="*" mode="dmRef_value">

<xsl:param name="value"><xsl:value-of select="@referredFragment"/></xsl:param>
	<xsl:choose>
		<xsl:when test="substring($value,1,3)='par'"> 段落 </xsl:when>
		<xsl:when test="substring($value,1,3)='tab'"> 表格 </xsl:when>
		<xsl:when test="substring($value,1,3)='fig'"> 多媒体 </xsl:when>
	</xsl:choose>
</xsl:template>

</xsl:stylesheet>